@font-face {
    font-family: 'iconfont';  /* project id 196502 */
    src: url('//at.alicdn.com/t/font_us4dntdkr381if6r.eot');
    src: url('//at.alicdn.com/t/font_us4dntdkr381if6r.eot?#iefix') format('embedded-opentype'),
    url('//at.alicdn.com/t/font_us4dntdkr381if6r.woff') format('woff'),
    url('//at.alicdn.com/t/font_us4dntdkr381if6r.ttf') format('truetype'),
    url('//at.alicdn.com/t/font_us4dntdkr381if6r.svg#iconfont') format('svg');
}

.iconfont {
    font-family: "iconfont";
    font-size: 18px;
    line-height: 20px;
    font-style: normal;
    color: inherit;
    -webkit-font-smoothing: antialiased;
    &--lg {
        font-size: 28px;
        line-height: 30px;
        padding-right: 10px;
    }
}

html, body {
    box-sizing: border-box;
    min-width: 1350px;
    font-size: 16px;
    overflow-x: auto;
    overflow-y: auto;
    height: 100vh;
}

.app {
    min-width: 1000px;
    height: 100vh;
    overflow: hidden;
    min-height: 700px;
    background: #f6f6f6;
    &__side-bar {
        position: relative;
        z-index: 10;
        width: 230px;
        min-width: 230px;
        background: #fff;
        height: 100%;
        border-right: 1px solid $ig;
        transition: .4s ease-out;
        &.indent {
            margin-left: -230px;
        }
    }
    &__search {
        margin-top: 30px;
    }
    &__logo {
        width: 70%;
        color: $bl;
        font-size: 30px;
        user-select: none;
        font-family: 'Great Vibes', cursive;
        &-box {
            padding-top: 20px;
            width: 100%;
            height: 180px;
            border-bottom: 1px solid $ig;
            &-inner {
                width: 80%;
            }
        }
    }
    &__menu {
        position: relative;
        width: 90%;
        padding: 30px 0;
        &-title {
            padding-bottom: 20px;
            font-size: 20px;
            color: $em;
            padding-left: 12px;
        }
        &-list {
            position: relative;
            padding: 2px 0;
            cursor: pointer;
            color: $em;
            .iconfont {
                position: absolute;
                top: 50%;
                left: 15px;
                font-size: 17px;
                transform: translateY(-50%);
                font-weight: bold;
                transition: ts(.3);
            }
            &:hover {
                color: $bl;
            }
        }
        &-link {
            display: block;
            border-radius: 5px;
            padding: 8px 0;
            padding-left: 50px;
            line-height: 1.4;
            font-size: 14px;
            &.active {
                background: #f7f9fa;
                color: $bl;
                + .iconfont {
                    color: $bl;
                }
            }

        }
    }
    &__username {
        color: #c0d4e0;
        padding-top: 7px;
        padding-left: 80px;
        vertical-align: middle;
        float: left;
    }
    &__content {
        flex-grow: 1;
        height: 100%;
        overflow-y: auto;
    }
    &__shutdown {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        border-top: 1px solid $ig;
        color: $pr;
        padding: 7px 0 5px;
        cursor: pointer;
        @include ts;
        .iconfont {
            font-size: 30px;
        }
        &:hover {
            background: $ex;
            color: #fff;
        }
    }
    &__system {
        &-bar {
            height: 48px;
            background: #fff;
            text-align: right;
            border-bottom: 1px solid $ig;
        }
        &-select {
            display: inline-block;
            width: 270px;
        }
    }
    &__time {
        height: 48px;
        width: 150px;
        border-left: 1px solid $ig;
        color: $pr;
        flex-grow: 0;
    }
}

.dot {
    position: relative;
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transition: .1s ease-out;
    &.active {
        background: $gr;
        &:after {
            position: absolute;
            content: '';
            width: 14px;
            height: 14px;
            border-radius: 50%;
            top: -2px;
            left: -2px;
            background: rgba(70, 212, 105, .3);
            animation: breath 1s ease-out infinite;
        }
    }
    &.enactive {
        background: $rd;
    }
    &:hover {
        background: $rd;
        width: 30px;
        height: 30px;
        &:after {
            width: 14px;
            height: 1px;
            top: 15px;
            left: 8px;
            animation: none;
            border-radius: 0;
            transform: rotate(45deg);
            background: #fff;
        }
        &:before {
            position: absolute;
            content: '';
            width: 14px;
            height: 1px;
            top: 15px;
            left: 8px;
            animation: none;
            border-radius: 0;
            transform: rotate(-45deg);
            background: #fff;
        }
    }
}

@for $i from 5 through 33 {
    .w#{$i} {
        width: 1% * $i;
    }
}

.gap {
    height: 1px;
    width: 100%;
    background: $ig;
}

.el-input__inner {
    border-radius: 3px;
}

.el-menu {
    background: #fff;
    border-bottom: 1px solid $ig;
    padding-right: 40px;
}

.cb {
    &__bar-right {
        width: 400px;
        flex-direction: row-reverse;
        &--600 {
            width: 600px;
        }
        &--800 {
            width: 800px;
        }
        &--1000 {
            width: 1000px;
        }
    }
    &__bar-left {
        width: 200px;
        margin-left: 100px;
    }
    &__bar {
        &-txt {
            color: $pr;
            padding: 0 10px;
            font-size: 14px;
        }
    }
    &__search-sel {
        width: 180px;
    }
}

// 表格
.wh-table {
    font-size: 14px;
    border-radius: 4px;
    &__thead {
        padding: 15px 14px;
        padding-left: 20px;
        background: #eaeef0;
        color: $pr;
        .th {
            padding-left: 7px;
        }
    }
    &__tbody {
        padding: 30px 14px;
        padding-left: 20px;
        background: #fff;
        color: $pr;
        border: 1px solid #eff3f5;
        border-top: 0 none;
        cursor: pointer;
        overflow-x: hidden;
        @include ts;

        &--empty {
            text-align: center;
            font-size: 18px;
            padding: 20px 0;
            color: $pr;
        }
        &.slim {
            padding: 14px 14px 14px 20px;
        }
        &:hover {
            box-shadow: 4px 0 0 0 $bl inset;
        }
        .td {
            white-space: normal;
            word-break: break-all;
            padding-left: 7px;
        }
        .em {
            color: $bl!important;
            text-decoration: underline;
        }
    }
    &__page {
        background: #fff;
        padding: 10px 0;
    }
    &__em {
        font-size: 18px;
        color: $em;
        font-weight: normal;
        padding-bottom: 5px;
    }
    &__lighter {
        font-size: 14px;
        padding-bottom: 3px;
    }
    &__thumbnail {
        position: relative;
        width: 90%;
        height: 120px;
        overflow: hidden;
        &--vertical {
            height: auto;
            max-height: 220px;
            min-height: 120px;
        }
        &:after {
            position: absolute;
            content: attr(data-content);
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 2;
            color: #fff;
            font-size: 12px;
            padding: 5px 0;
            background: rgba(0, 0, 0, .6);
            text-align: center;
        }
        &-inner {
            width: 100%;
        }
    }

}

// 图片弹出层
.img {
    position: relative;
    width: 250px;
    height: 150px;
    overflow-y: hidden;
    &__inner {
        width: 100%;
        cursor: pointer;
    }
    &__ps {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 30px;
        background: rgba(0, 0, 0, .5);
        color: #fff;
        font-size: 12px;
    }
    &__empty {
        width: 100%;
        height: 100%;
        color: $pr;
        border: 1px solid $ig;
        background: $ig;
        border-radius: 3px;
    }
    &__modal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 20;
        background: rgba(255, 255, 255, .8);
    }
    &__big {
        max-width: 80%;
        max-height: 90%;
    }
    &__close {
        position: absolute;
        right: 30px;
        top: 40px;
        font-size: 35px;
        font-weight: lighter;
        cursor: pointer;
        color: $em;
        @include ts;
        &:hover {
            color: $em;
        }
    }
}

// 图片弹出层辅助文字
.point {
    &__msg {
        text-align: center;
        padding-bottom: 40px;
        font-size: 20px;
    }
}

.form {
    &__title {
        font-weight: normal;
        padding-bottom: 20px;
        color: $pr;
    }
}

.best {
    color: #46d469;
}